1 <?xml version="1.0" encoding="utf-8"?>
2 <xs:schema id=
"milkdairyDataSet3" targetNamespace="http://tempuri.org/milkdairyDataSet3.xsd" xmlns:mstns="http://tempuri.org/milkdairyDataSet3.xsd" xmlns="http://tempuri.org/milkdairyDataSet3.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
3   <xs:annotation>
4     <xs:appinfo source=
"urn:schemas-microsoft-com:xml-msdatasource">
5       <DataSource DefaultConnectionIndex=
"0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
6         <Connections>
7           <Connection AppSettingsObjectName=
"Settings" AppSettingsPropertyName="milkdairyConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="milkdairyConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.MilkDairyManagementSystemCSharp.Properties.Settings.GlobalReference.Default.milkdairyConnectionString" Provider="System.Data.SqlClient" />
8         </Connections>
9         <Tables>
10           <TableAdapter BaseClass=
"System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="rateTableAdapter" GeneratorDataComponentClassName="rateTableAdapter" Name="rate" UserDataComponentName="rateTableAdapter">
11             <MainSource>
12               <DbSource ConnectionRef=
"milkdairyConnectionString (Settings)" DbObjectName="dbo.rate" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
13                 <DeleteCommand>
14                   <DbCommand CommandType=
"Text" ModifiedByUser="false">
15                     <CommandText>DELETE FROM [dbo].[rate] WHERE (([Id] = @Original_Id) AND ((@IsNull_c_fate_rate =
1 AND [c_fate_rate] IS NULL) OR ([c_fate_rate] = @Original_c_fate_rate)) AND ((@IsNull_n_fate_rate = 1 AND [n_fate_rate] IS NULL) OR ([n_fate_rate] = @Original_n_fate_rate)))</CommandText>
16                     <Parameters>
17                       <Parameter AllowDbNull=
"false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
18                       <Parameter AllowDbNull=
"true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_c_fate_rate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="c_fate_rate" SourceColumnNullMapping="true" SourceVersion="Original" />
19                       <Parameter AllowDbNull=
"true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_c_fate_rate" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="c_fate_rate" SourceColumnNullMapping="false" SourceVersion="Original" />
20                       <Parameter AllowDbNull=
"true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_n_fate_rate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="n_fate_rate" SourceColumnNullMapping="true" SourceVersion="Original" />
21                       <Parameter AllowDbNull=
"true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_n_fate_rate" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="n_fate_rate" SourceColumnNullMapping="false" SourceVersion="Original" />
22                     </Parameters>
23                   </DbCommand>
24                 </DeleteCommand>
25                 <InsertCommand>
26                   <DbCommand CommandType=
"Text" ModifiedByUser="false">
27                     <CommandText>INSERT INTO [dbo].[rate] ([c_fate_rate], [n_fate_rate]) VALUES (@c_fate_rate, @n_fate_rate);
28 SELECT Id, c_fate_rate, n_fate_rate FROM rate WHERE (Id = SCOPE_IDENTITY())</CommandText>
29                     <Parameters>
30                       <Parameter AllowDbNull=
"true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@c_fate_rate" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="c_fate_rate" SourceColumnNullMapping="false" SourceVersion="Current" />
31                       <Parameter AllowDbNull=
"true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@n_fate_rate" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="n_fate_rate" SourceColumnNullMapping="false" SourceVersion="Current" />
32                     </Parameters>
33                   </DbCommand>
34                 </InsertCommand>
35                 <SelectCommand>
36                   <DbCommand CommandType=
"Text" ModifiedByUser="false">
37                     <CommandText>SELECT Id, c_fate_rate, n_fate_rate FROM dbo.rate</CommandText>
38                     <Parameters />
39                   </DbCommand>
40                 </SelectCommand>
41                 <UpdateCommand>
42                   <DbCommand CommandType=
"Text" ModifiedByUser="false">
43                     <CommandText>UPDATE [dbo].[rate] SET [c_fate_rate] = @c_fate_rate, [n_fate_rate] = @n_fate_rate WHERE (([Id] = @Original_Id) AND ((@IsNull_c_fate_rate =
1 AND [c_fate_rate] IS NULL) OR ([c_fate_rate] = @Original_c_fate_rate)) AND ((@IsNull_n_fate_rate = 1 AND [n_fate_rate] IS NULL) OR ([n_fate_rate] = @Original_n_fate_rate)));
44 SELECT Id, c_fate_rate, n_fate_rate FROM rate WHERE (Id = @Id)</CommandText>
45                     <Parameters>
46                       <Parameter AllowDbNull=
"true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@c_fate_rate" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="c_fate_rate" SourceColumnNullMapping="false" SourceVersion="Current" />
47                       <Parameter AllowDbNull=
"true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@n_fate_rate" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="n_fate_rate" SourceColumnNullMapping="false" SourceVersion="Current" />
48                       <Parameter AllowDbNull=
"false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
49                       <Parameter AllowDbNull=
"true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_c_fate_rate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="c_fate_rate" SourceColumnNullMapping="true" SourceVersion="Original" />
50                       <Parameter AllowDbNull=
"true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_c_fate_rate" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="c_fate_rate" SourceColumnNullMapping="false" SourceVersion="Original" />
51                       <Parameter AllowDbNull=
"true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_n_fate_rate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="n_fate_rate" SourceColumnNullMapping="true" SourceVersion="Original" />
52                       <Parameter AllowDbNull=
"true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_n_fate_rate" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="n_fate_rate" SourceColumnNullMapping="false" SourceVersion="Original" />
53                       <Parameter AllowDbNull=
"false" AutogeneratedName="Id" ColumnName="Id" DataSourceName="[7B85E66E5B47A16D9E4F6DAC01C44393_DIO 2015\PROJECTS\MILKDAIRYMANAGEMENTSYSTEMCSHARP\MILKDAIRYMANAGEMENTSYSTEMCSHARP\MILKDAIRY.MDF].dbo.rate" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
54                     </Parameters>
55                   </DbCommand>
56                 </UpdateCommand>
57               </DbSource>
58             </MainSource>
59             <Mappings>
60               <Mapping SourceColumn=
"Id" DataSetColumn="Id" />
61               <Mapping SourceColumn=
"c_fate_rate" DataSetColumn="c_fate_rate" />
62               <Mapping SourceColumn=
"n_fate_rate" DataSetColumn="n_fate_rate" />
63             </Mappings>
64             <Sources />
65           </TableAdapter>
66         </Tables>
67         <Sources />
68       </DataSource>
69     </xs:appinfo>
70   </xs:annotation>
71   <xs:element name=
"milkdairyDataSet3" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="milkdairyDataSet3" msprop:Generator_UserDSName="milkdairyDataSet3">
72     <xs:complexType>
73       <xs:choice minOccurs=
"0" maxOccurs="unbounded">
74         <xs:element name=
"rate" msprop:Generator_TableClassName="rateDataTable" msprop:Generator_TableVarName="tablerate" msprop:Generator_TablePropName="rate" msprop:Generator_RowDeletingName="rateRowDeleting" msprop:Generator_RowChangingName="rateRowChanging" msprop:Generator_RowEvHandlerName="rateRowChangeEventHandler" msprop:Generator_RowDeletedName="rateRowDeleted" msprop:Generator_UserTableName="rate" msprop:Generator_RowChangedName="rateRowChanged" msprop:Generator_RowEvArgName="rateRowChangeEvent" msprop:Generator_RowClassName="rateRow">
75           <xs:complexType>
76             <xs:sequence>
77               <xs:element name=
"Id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnPropNameInTable="IdColumn" msprop:Generator_UserColumnName="Id" type="xs:int" />
78               <xs:element name=
"c_fate_rate" msprop:Generator_ColumnVarNameInTable="columnc_fate_rate" msprop:Generator_ColumnPropNameInRow="c_fate_rate" msprop:Generator_ColumnPropNameInTable="c_fate_rateColumn" msprop:Generator_UserColumnName="c_fate_rate" minOccurs="0">
79                 <xs:simpleType>
80                   <xs:restriction
base="xs:string">
81                     <xs:maxLength
value="50" />
82                   </xs:restriction>
83                 </xs:simpleType>
84               </xs:element>
85               <xs:element name=
"n_fate_rate" msprop:Generator_ColumnVarNameInTable="columnn_fate_rate" msprop:Generator_ColumnPropNameInRow="n_fate_rate" msprop:Generator_ColumnPropNameInTable="n_fate_rateColumn" msprop:Generator_UserColumnName="n_fate_rate" minOccurs="0">
86                 <xs:simpleType>
87                   <xs:restriction
base="xs:string">
88                     <xs:maxLength
value="50" />
89                   </xs:restriction>
90                 </xs:simpleType>
91               </xs:element>
92             </xs:sequence>
93           </xs:complexType>
94         </xs:element>
95       </xs:choice>
96     </xs:complexType>
97     <xs:unique name=
"Constraint1" msdata:PrimaryKey="true">
98       <xs:selector xpath=
".//mstns:rate" />
99       <xs:field xpath=
"mstns:Id" />
100     </xs:unique>
101   </xs:element>
102 </xs:schema>


Gõ tìm kiếm nhanh...